<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Badugi: tools.Hand Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Badugi
   &#160;<span id="projectnumber">1.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classtools_1_1_hand.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="classtools_1_1_hand-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">tools.Hand Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for tools.Hand:</div>
<div class="dyncontent">
<div class="center"><img src="classtools_1_1_hand__inherit__graph.png" border="0" usemap="#tools_8_hand_inherit__map" alt="Inheritance graph"/></div>
<map name="tools_8_hand_inherit__map" id="tools_8_hand_inherit__map">
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for tools.Hand:</div>
<div class="dyncontent">
<div class="center"><img src="classtools_1_1_hand__coll__graph.png" border="0" usemap="#tools_8_hand_coll__map" alt="Collaboration graph"/></div>
<map name="tools_8_hand_coll__map" id="tools_8_hand_coll__map">
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0619a7d546b2e783387a6c5a3e660514"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#a0619a7d546b2e783387a6c5a3e660514">Hand</a> (<a class="el" href="classtools_1_1_card.html">Card</a> c1, <a class="el" href="classtools_1_1_card.html">Card</a> c2, <a class="el" href="classtools_1_1_card.html">Card</a> c3, <a class="el" href="classtools_1_1_card.html">Card</a> c4)</td></tr>
<tr class="separator:a0619a7d546b2e783387a6c5a3e660514"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7f4439e1e6a6c6c410b036916cbbbd3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#af7f4439e1e6a6c6c410b036916cbbbd3">Hand</a> (ArrayList&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt; cards)</td></tr>
<tr class="separator:af7f4439e1e6a6c6c410b036916cbbbd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a146c0ed11fe0455c4ef8ac1909b0d459"><td class="memItemLeft" align="right" valign="top">ArrayList&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#a146c0ed11fe0455c4ef8ac1909b0d459">getCardList</a> ()</td></tr>
<tr class="separator:a146c0ed11fe0455c4ef8ac1909b0d459"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af807b5bdf18fb3c80204d016374931a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#af807b5bdf18fb3c80204d016374931a9">swapCards</a> (ArrayList&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt; oldCards, ArrayList&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt; newCards)</td></tr>
<tr class="separator:af807b5bdf18fb3c80204d016374931a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4662f44dbae395a8ed57f7b701a4cb2f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#a4662f44dbae395a8ed57f7b701a4cb2f">compareTo</a> (<a class="el" href="classtools_1_1_hand.html">Hand</a> h)</td></tr>
<tr class="separator:a4662f44dbae395a8ed57f7b701a4cb2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2a61ee566a922d40a4c0f756e633643"><td class="memItemLeft" align="right" valign="top">ArrayList&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#ae2a61ee566a922d40a4c0f756e633643">getCards</a> ()</td></tr>
<tr class="separator:ae2a61ee566a922d40a4c0f756e633643"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0931ac97df4f8758d445c81e9254b01e"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#a0931ac97df4f8758d445c81e9254b01e">getCardsListAsString</a> ()</td></tr>
<tr class="separator:a0931ac97df4f8758d445c81e9254b01e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae58f48b935f21ddf0013ad535c4ad51d"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#ae58f48b935f21ddf0013ad535c4ad51d">toString</a> ()</td></tr>
<tr class="separator:ae58f48b935f21ddf0013ad535c4ad51d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a1fc2be0afdcebc56960a8139113ef5d3"><td class="memItemLeft" align="right" valign="top">static Comparator&lt; ArrayList<br class="typebreak" />
&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classtools_1_1_hand.html#a1fc2be0afdcebc56960a8139113ef5d3">ColorListComparator</a></td></tr>
<tr class="separator:a1fc2be0afdcebc56960a8139113ef5d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_hand_8java_source.html#l00008">8</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a0619a7d546b2e783387a6c5a3e660514"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">tools.Hand.Hand </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classtools_1_1_card.html">Card</a>&#160;</td>
          <td class="paramname"><em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classtools_1_1_card.html">Card</a>&#160;</td>
          <td class="paramname"><em>c2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classtools_1_1_card.html">Card</a>&#160;</td>
          <td class="paramname"><em>c3</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classtools_1_1_card.html">Card</a>&#160;</td>
          <td class="paramname"><em>c4</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_hand_8java_source.html#l00017">17</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

</div>
</div>
<a class="anchor" id="af7f4439e1e6a6c6c410b036916cbbbd3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">tools.Hand.Hand </td>
          <td>(</td>
          <td class="paramtype">ArrayList&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt;&#160;</td>
          <td class="paramname"><em>cards</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_hand_8java_source.html#l00027">27</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a4662f44dbae395a8ed57f7b701a4cb2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int tools.Hand.compareTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classtools_1_1_hand.html">Hand</a>&#160;</td>
          <td class="paramname"><em>h</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_hand_8java_source.html#l00059">59</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

</div>
</div>
<a class="anchor" id="a146c0ed11fe0455c4ef8ac1909b0d459"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;<a class="el" href="classtools_1_1_card.html">Card</a>&gt; tools.Hand.getCardList </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_hand_8java_source.html#l00032">32</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

</div>
</div>
<a class="anchor" id="ae2a61ee566a922d40a4c0f756e633643"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ArrayList&lt;<a class="el" href="classtools_1_1_card.html">Card</a>&gt; tools.Hand.getCards </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_hand_8java_source.html#l00085">85</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classtools_1_1_hand_ae2a61ee566a922d40a4c0f756e633643_icgraph.png" border="0" usemap="#classtools_1_1_hand_ae2a61ee566a922d40a4c0f756e633643_icgraph" alt=""/></div>
<map name="classtools_1_1_hand_ae2a61ee566a922d40a4c0f756e633643_icgraph" id="classtools_1_1_hand_ae2a61ee566a922d40a4c0f756e633643_icgraph">
<area shape="rect" id="node2" href="classtools_1_1_hand.html#a0931ac97df4f8758d445c81e9254b01e" title="tools.Hand.getCardsListAs\lString" alt="" coords="193,5,371,47"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a0931ac97df4f8758d445c81e9254b01e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String tools.Hand.getCardsListAsString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_hand_8java_source.html#l00228">228</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classtools_1_1_hand_a0931ac97df4f8758d445c81e9254b01e_cgraph.png" border="0" usemap="#classtools_1_1_hand_a0931ac97df4f8758d445c81e9254b01e_cgraph" alt=""/></div>
<map name="classtools_1_1_hand_a0931ac97df4f8758d445c81e9254b01e_cgraph" id="classtools_1_1_hand_a0931ac97df4f8758d445c81e9254b01e_cgraph">
<area shape="rect" id="node2" href="classtools_1_1_hand.html#ae2a61ee566a922d40a4c0f756e633643" title="tools.Hand.getCards" alt="" coords="231,13,371,39"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="af807b5bdf18fb3c80204d016374931a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tools.Hand.swapCards </td>
          <td>(</td>
          <td class="paramtype">ArrayList&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt;&#160;</td>
          <td class="paramname"><em>oldCards</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">ArrayList&lt; <a class="el" href="classtools_1_1_card.html">Card</a> &gt;&#160;</td>
          <td class="paramname"><em>newCards</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_hand_8java_source.html#l00039">39</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

</div>
</div>
<a class="anchor" id="ae58f48b935f21ddf0013ad535c4ad51d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String tools.Hand.toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="_hand_8java_source.html#l00233">233</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a1fc2be0afdcebc56960a8139113ef5d3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Comparator&lt;ArrayList&lt;<a class="el" href="classtools_1_1_card.html">Card</a>&gt; &gt; tools.Hand.ColorListComparator</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= <span class="keyword">new</span> Comparator&lt;ArrayList&lt;Card&gt;&gt;() </div>
<div class="line">    {</div>
<div class="line">            <span class="keyword">public</span> <span class="keywordtype">int</span> compare(ArrayList&lt;Card&gt; color1, ArrayList&lt;Card&gt; color2) </div>
<div class="line">            {</div>
<div class="line">                </div>
<div class="line">                <span class="keywordflow">if</span> (color1.size() == 0 &amp;&amp; color2.size() == 0)</div>
<div class="line">                    <span class="keywordflow">return</span> 0;</div>
<div class="line">                </div>
<div class="line">                <span class="keywordflow">if</span> (color1.size() == color2.size())</div>
<div class="line">                    <span class="keywordflow">return</span> color1.get(color1.size()-1).compareTo(color2.get(color2.size()-1));</div>
<div class="line">                </div>
<div class="line">                <span class="keywordflow">return</span> color2.size() - color1.size();</div>
<div class="line">            }</div>
<div class="line"></div>
<div class="line">    }</div>
</div><!-- fragment -->
<p>Definition at line <a class="el" href="_hand_8java_source.html#l00212">212</a> of file <a class="el" href="_hand_8java_source.html">Hand.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>tools/<a class="el" href="_hand_8java_source.html">Hand.java</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacetools.html">tools</a></li><li class="navelem"><a class="el" href="classtools_1_1_hand.html">Hand</a></li>
    <li class="footer">Generated on Sun Nov 16 2014 20:20:36 for Badugi by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
